import Home from '@/views/home'
import Patient from '@/views/patient'
import Mine from '@/views/mine'
import TabBar from '@/components/tab-bar'

// 创建路由数组 配置路由路径

const routes = [
  {
    path: '/',
    redirect: '/home', // 重定向
  },
  {
    path: '/home',
    components:
     {
       default: Home,
       footer: TabBar,
     },
    meta: {
      title: '首页',
      inTabBar: true,
      icon: '&#xe622;',
    },
  },
  {
    path: '/patient',
    components:
     {
       default: Patient,
       footer: TabBar,
     },
    meta: {
      title: '患者',
      inTabBar: true,
      icon: '&#xe666;',
    },
  },
  {
    path: '/mine',
    components:
     {
       default: Mine,
       footer: TabBar,
     },
    meta: {
      title: '我的',
      inTabBar: true,
      icon: '&#xe617;',
    },
  },
]

export default routes
